package cn.tedu.blog.server.pojo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel("评论实体类")
@Data
public class Comment implements Serializable {
    /**
     * 评论主键ID
     */
    @ApiModelProperty(value="用户ID",name="id",example = "1")
    private Long id;
    /**
     *评论内容
     */
    @ApiModelProperty(value="评论内容",name="content",example = "这是一条好的评论 ")
    private String content;

    /**
     *状态，隐藏 0 ，显示 1
     */
    @ApiModelProperty(value="状态，隐藏 0 ，显示 1",name="status",example = "1")
    private Integer status;
    /**
     *被评论的所属用户id
     */
    @ApiModelProperty(value="被评论的所属用户id",name="userId",example = "UID12")
    private Long userId;
    /**
     *评论文章id
     */
    @ApiModelProperty(value="评论文章id",name="articleId",example = "3")
    private Long articleId;
    /**
     *创建时间
     */
    @ApiModelProperty(value="创建时间",name="gmtCreate",example = "2022/7/24")
    private LocalDateTime gmtCreate;


    /**
     * 评论人昵称
     */
    private String nick;
}
